{  Statement: http://acmp.ru/?main=task&id_task=28
   Verdict: Accepted
}
uses
    SysUtils, Math;

var
    a,b,c,d,x,y:int64;

begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(a,b,c,d,x,y);
if b = d then begin
    if y <> b then write(x,' ',b - y + b) else write(x,' ',y);
end else begin
    if x <> a then write(c - x + c,' ',y) else write(x,' ',y);
end;
end.